package com.bwie.remote;

import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import com.bwie.remote.factory.UserRemoteFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @className: UserRemote
 * @Description: TODO
 * @version: v1.８.0
 * @author: 汪菲阳
 * @date: 2025/11/10 10:05
 */
@FeignClient(name = "bwie-system",fallbackFactory = UserRemoteFallBackFactory.class)
public interface UserRemote {
    /**
     * 根据用户名称查询用户信息
     * @param userName
     * @return
     */
    @GetMapping("sysUser/selectUserByUserName/{userName}")
    public Result<User> selectUserByUserName(@PathVariable("userName") String userName);
}
